﻿<UserControl 
    x:Class="IndexMarkSilverlightClient.Views.Controls.ReportsControls.NullableCharacteristic"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:Classes="clr-namespace:IndexMarkSilverlightClient.Classes"
             xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
             mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        
        <StackPanel Orientation="Horizontal" Grid.Row="0">
            <TextBlock Text="Фильтр:" Margin="2,2,2,2" VerticalAlignment="Center"/>
            <TextBox x:Name="txtBoxFilter" Width="150" Margin="2,2,2,2" VerticalAlignment="Center" TextChanged="txtBoxFilter_TextChanged"/>
            <Button Content="Экспорт в Excel" Margin="2" Click="Button_Click" />
        </StackPanel>
        
        <Classes:xDataGrid x:Name="CharacteristicGrid" Grid.Row="1" ItemsSource="{Binding}" AutoGenerateColumns="False">
            <Classes:xDataGrid.Columns>
                <data:DataGridTextColumn Header="№" Binding="{Binding Order}" />
                <data:DataGridTextColumn Header="Ответственные" Binding="{Binding Responsibles}"/>
                <data:DataGridTextColumn Header="Название характеристики" Binding="{Binding Name}"/>
            </Classes:xDataGrid.Columns>
        </Classes:xDataGrid>
    </Grid>
</UserControl>
